package com.djsearch.bean;

import java.io.Serializable;

/**
 * 飞机票实体类
 * @author chenyang2
 *
 */
public class PlaneTicket implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	
	
	
	/**
	 * new data
	 * @return
	 * 
	 * {"priceType":"普通","endCity":"首都国际机场","airlineDibitCode":"中国国际航空股份有限公司",
			 * "endTime":"2013-04-19T10:15:00","sale":"1","startTime":"2013-04-19T07:55:00",
			 * "arriveAirportCode":"北京(首都国际机场)",
			 * "flight":"CA1858","startCity":"虹桥国际机场",
			 * "departAirportCode":"上海(虹桥国际机场)",
			 * "price":"1130","planeType":"333","name":"中国国际航空股份有限公司","quantity":"10"}
	 * 
	 * 
	 */
	
	private String startTime;//出发时间
	private String endTime;//到达时间
	private String name;//航空公司的名字
	
	private String departAirportCode;//出发机场
	private String arriveAirportCode;//到达机场
	
	private String flight;//航班号
	private String airlineDibitCode;//航空公司
	private String quantity;//剩余票数
	private String priceType;//价格类型
	private String startCity;
	private String endCity;
	private String planeType;
	private String sale;
	private String price ;
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
//	public String getName() {
//		return name;
//	}
//	public void setName(String name) {
//		this.name = name;
//	}
	public String getStartTime() {
		String[] str = startTime.split("T");
		return str[1];
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		String[] str = endTime.split("T");
		return str[1];
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDepartAirportCode() {
		return departAirportCode;
	}
	public void setDepartAirportCode(String departAirportCode) {
		this.departAirportCode = departAirportCode;
	}
	public String getArriveAirportCode() {
		return arriveAirportCode;
	}
	public void setArriveAirportCode(String arriveAirportCode) {
		this.arriveAirportCode = arriveAirportCode;
	}
	public String getFlight() {
		return flight;
	}
	public void setFlight(String flight) {
		this.flight = flight;
	}
	public String getAirlineDibitCode() {
		return airlineDibitCode;
	}
	public void setAirlineDibitCode(String airlineDibitCode) {
		this.airlineDibitCode = airlineDibitCode;
	}
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	public String getPriceType() {
		return priceType;
	}
	public void setPriceType(String priceType) {
		this.priceType = priceType;
	}
	public String getStartCity() {
		return startCity;
	}
	public void setStartCity(String startCity) {
		this.startCity = startCity;
	}
	public String getEndCity() {
		return endCity;
	}
	public void setEndCity(String endCity) {
		this.endCity = endCity;
	}
	public String getPlaneType() {
		return planeType;
	}
	public void setPlaneType(String planeType) {
		this.planeType = planeType;
	}
	public String getSale() {
		return sale;
	}
	public void setSale(String sale) {
		this.sale = sale;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	
	
	
	
	
}
